<!DOCTYPE HTML>
<!--
/*
 * blueimp Gallery Demo
 * https://github.com/blueimp/Gallery
 *
 * Copyright 2013, Sebastian Tschan
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * https://opensource.org/licenses/MIT
 */
-->
<html lang="en">
<head>
    <!--[if IE]>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <![endif]-->
    <meta charset="utf-8">
    <title>blueimp Gallery</title>
    <meta name="description" content="blueimp Gallery is a touch-enabled, responsive and customizable image and video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers. It features swipe, mouse and keyboard navigation, transition effects, slideshow functionality, fullscreen support and on-demand content loading and can be extended to display additional content types.">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/blueimp-gallery.css">
    <link rel="stylesheet" href="css/blueimp-gallery-indicator.css">
    <!-- <link rel="stylesheet" href="css/blueimp-gallery-video.css"> -->
    <link rel="stylesheet" href="css/demo/demo.css">
    <style>

        .lightBoxGallery img {
            margin: 5px;
            width: 160px;
        }
    </style>
</head>
<body>
    <h2>Lightbox image gallery</h2>
    <!-- The container for the list of example images -->
    <div id="links" class="lightBoxGallery">
        <a href="images/4d8af8aa9e49912ec30001d.png" title="图片"><img src="images/4d8af8aa9e49912ec30001d.png"></a>
        <a href="images/4d8af8aa9e49912ec30001d.png" title="图片"><img src="images/4d8af8aa9e49912ec30001d.png"></a>
        <a href="images/4d8af8aa9e49912ec30001d.png" title="图片"><img src="images/4d8af8aa9e49912ec30001d.png"></a>
    </div>
    <!-- The Gallery as lightbox dialog, should be a child element of the document body -->
    <!-- <div id="blueimp-image-gallery" class="blueimp-gallery">
        <div class="slides"></div>
        <h3 class="title"></h3>
        <a class="prev">‹</a>
        <a class="next">›</a>
        <a class="close">×</a>
        <a class="play-pause"></a>
        <ol class="indicator"></ol>
    </div> -->
    <script src="js/blueimp-helper.js"></script>
    <script src="js/blueimp-gallery.js"></script>
    <script src="js/blueimp-gallery-fullscreen.js"></script>
    <script src="js/blueimp-gallery-indicator.js"></script>
    <!-- <script src="js/blueimp-gallery-video.js"></script> -->
    <!-- <script src="js/blueimp-gallery-vimeo.js"></script> -->
    <!-- <script src="js/blueimp-gallery-youtube.js"></script> -->
    <script src="js/vendor/jquery.js"></script>
    <script src="js/jquery.blueimp-gallery.js"></script>
    <!-- <script src="js/demo/demo.js"></script> -->
    <script>
        function createBlueimp(){
            var container = $('<div id="blueimp-image-gallery" class="blueimp-gallery"></div>');
            container.append('<div class="slides"></div>');
            container.append('<h3 class="title"></h3>');
            container.append('<a class="prev">‹</a>');
            container.append('<a class="next">›</a>');
            container.append('<a class="close">×</a>');
            container.append('<a class="play-pause"></a>');
            container.append('<ol class="indicator"></ol>');
            $('body').append(container);
        }
        createBlueimp();
        // Initialize the Gallery as video carousel:
        document.getElementById('links').onclick = function (event) {
            event = event || window.event;
            var target = event.target || event.srcElement,
                link = target.src ? target.parentNode : target,
                options = {index: link, event: event, container: '#blueimp-image-gallery',},
                links = this.getElementsByTagName('a');
            blueimp.Gallery(links, options);
        };
    </script>
</body>
</html>
